import java.io.ObjectInputStream;

public class MyPoint {
    public static void main(String[] args) {
        MyPoint d=new MyPoint();
        MyPoint b=new MyPoint(10,30.5);

    }

    private double x,y;

    public double getX() {
        return x;
    }

    public double getY() {
        return y;
    }

    private MyPoint()
    {
     this.x=0;
     this.y=0;
    }
    private MyPoint(double x,double y)
    {
        this.x=x;
        this.y=y;
    }
    public double distance(double x,double y){

        return Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
    }
    public double distance(double x,double y,double i,double j){
        double sqrt = Math.sqrt(Math.pow(x - i, 2) + Math.pow(y - j, 2));
        return sqrt;
    }
}
